const {
  mysqlQuery
} = require('../tools/utils');

module.exports = async ctx => {
  let {
    formId,
    openId
  } = ctx.request.body
  let sql = `UPDATE cSessionInfo SET formId='${formId}' WHERE open_id='${openId}'`
  await mysqlQuery(sql);
  ctx.body = {
    msg: 'success'
  }
};
